package cn.edu.kzjsxy.graduationproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 宿舍信息表
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dormitories")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="Dormitories对象", description="宿舍信息表")
public class Dormitories implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "宿舍ID")
    @TableId(value = "dormitory_id", type = IdType.ASSIGN_UUID)
    private String dormitoryId;

    @ApiModelProperty(value = "单元号")
    @TableField("unit_id")
    private String unitId;

    @ApiModelProperty(value = "房间号")
    @TableField("room_number")
    private String roomNumber;

    @ApiModelProperty(value = "宿舍床位")
    @TableField("dormitory_bed")
    private Integer dormitoryBed;

    @ApiModelProperty(value = "宿舍状态（例如：已满、未满、空闲，禁用，可用,等）")
    @TableField("status")
    private String status;

}
